﻿using IceZero.Business.Models;
using IceZero.Web.Helpers;
using Microsoft.AspNetCore.Mvc;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace IceZero.Web.Controllers
{
    [ApiController]
    [Route("api/[controller]/[action]")]
    public class ExceptionController : ControllerBase
    {
        public int CallCount { get; set; } = 0;

        public static int SCallCount { get; set; } = 0;
        private bool G() { return true; }
        [HttpGet]
        public IActionResult Throw1(int num)
        {
            return ActionHelper.ExecAction(this, controller =>
            {
                return G()?"AA":null;
            });
        }

        [HttpGet]
        public IActionResult Call(int num)
        {
            return ActionHelper.ExecAction(this, controller =>
            {

            });
        }
    }
}
